//
//  YCFileDownLoadManager.h
//  离线下载
//
//  Created by user on 16/4/18.
//  Copyright © 2016年 user. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "SingleInstance.h"

typedef void(^complete)(CGFloat progress,NSString *fileURL);
typedef void(^error)(NSError *error);

@interface YCFileDownLoadManager : NSObject
@property(nonatomic,assign)CGFloat  progress;


SingleInstanceH
-(void)downLoadWithUrl:(NSString *)url didComplete:(complete)didComplete comError:(error)diderror;
-(void)resumeDownLoad;
-(void)suspendDownLoad;
-(void)removeFile;
@end
